package com.kid.keep.dao.item;

import com.kid.keep.po.CheckItem;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description CheckItem dao
 * @Author JOHN
 * @Create 2019-01-10
 * @Since 1.0.0
 */
@Repository
public class CheckItemRepository extends ServiceImpl<ICheckItemMapper, CheckItem> implements ICheckItemRepository {

    @Override
    public List<CheckItem> finAllItem(Integer dataStatus) {
        return this.baseMapper.selectList(new QueryWrapper<CheckItem>().lambda().eq(CheckItem::getDataStatus, dataStatus));
    }

}


